<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     <script>
    console.log('开始');
    
         function fn1 (){
             console.log('这是fn1');
             fn2()
         }
         function fn2 (){
             console.log('这是fn2');
            
         }
         fn1()
         console.log('结束');
     </script>
</body>
</html>